package com.engine.core.interceptor;


import com.engine.system.User;

import java.util.Map;

/**
 * Created by ccaiw on 2018/1/19.
 */
public abstract class AbstractCommand<T,R extends CommandContext> implements Command<T,R> {

    public AbstractCommand(User user, Map<String, Object> params){
         this.user=user;
         this.params=params;
    }
    /**
     * user对象
     */
    protected User user;

    /**
     * 参数列表
     */
    protected Map<String, Object> params;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
